import request from '@/utils/request'

// 查询房产资料列表
export function listHouseinfo(query) {
  return request({
    url: '/house_sale/houseinfo/list',
    method: 'get',
    params: query
  })
}
// 查询房产相关其他
export function getOthers() {
  return request({
    url: '/house_sale/houseinfo/others',
    method: 'get',
  })
}
// 查询房产资料详细
export function getHouseinfo(hourseid) {
  return request({
    url: '/house_sale/houseinfo/' + hourseid,
    method: 'get'
  })
}

// 新增房产资料
export function addHouseinfo(data) {
  return request({
    url: '/house_sale/houseinfo',
    method: 'post',
    data: data
  })
}

// 修改房产资料
export function updateHouseinfo(data) {
  return request({
    url: '/house_sale/houseinfo',
    method: 'put',
    data: data
  })
}

// 删除房产资料
export function delHouseinfo(hourseid) {
  return request({
    url: '/house_sale/houseinfo/' + hourseid,
    method: 'delete'
  })
}
//判断是否已结清
export function updIsBalance(hourseid){
  return request({
    url: '/house_sale/houseinfo/updIsBalance/'+hourseid,
    method: 'get'
  })
}

